package com.jeecms.wicool.dao.cms;

import java.util.List;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.cms.CmsNewInfo;
/**
 */
public interface CmsNewInfoDao{
	public Pagination getPage(String title ,int pageNo, int pageSize,CmsUser user);
	public CmsNewInfo findById(Integer id);
	public CmsNewInfo updateByUpdater(Updater<CmsNewInfo> updater);
	public CmsNewInfo save(CmsNewInfo bean);
	public CmsNewInfo deleteById(Integer id);
	public List<CmsNewInfo> getAll(CmsUser user);
	public boolean isHave(CmsNewInfo bean);
	public CmsNewInfo findByCmsNewInfo(CmsNewInfo bean);
	
	public CmsNewInfo findByContentId(Integer contentId);
}